home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text0973.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  1.7 KB  |  38 lines

  1.  
  2. Jay C. Weber writes:
  3. > How about variable name substitution in URLs?  E.g., you
  4. > could use a HREF=file://$parentsite$parentdir/foo.html to make
  5. > explicit how the broswer should construct relative pathnames.
  6. > The advantage of this over the current HREF=file:foo.html
  7. > scheme is it opens up many other kinds of context-sensitive
  8. > URLs, like substituting the parentsite but naming a new
  9. > directory path.  Or, browsers (the WWW library I guess) could
  10. > define new variables like $standardsite, which would depend
  11. > on the user's continent (per the recent suggestion about
  12. > distributing servers).
  13.  
  14.   If you are going to add variable substitution to URL's, then perhaps
  15. it would be best to define two types of variables: those which are
  16. to be interpreted by the client, and those which the server should
  17. expand.  
  18.   Thus, a user could configure their browser session so as to
  19. force a particular interpretation of any "variant" links
  20. encountered.  The $standardsite variable mentioned above is
  21. one example of a variable which should be interpreted locally,
  22. i.e. by the client.
  23.   Server-interpreted variables, on the other hand, could be used
  24. by information administrators to ease the task of maintaining
  25. document archives and to enhance reliability and efficiency.  The
  26. $parentsite and $parentdir variables mentioned in Jay's message
  27. are examples of these types of variables.  Another example would
  28. be a $least_busy_server_of_group_GROUP variable, as in
  29.     http://$least_busy_of_group_GROUP/foo.html.
  30. The server would replace this variable with the address of the least
  31. busy server in the group of servers named GROUP.
  32.   So, how are the two types distinguished?  Suppose that a server
  33. variable is preceeded by a single '$'. and client variables would be
  34. referenced by two $, o
  35.  
  36.  
  37.